﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Xml.Serialization;
using PSE.Deployment.SetupBase.Configuration.Enums;

namespace PSE.Deployment.SetupBase.Parameter
{
    [Serializable]
    public class ModuleVersion
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public List<ModuleLayer> Layers { get; set; }
        public PSE.Framework.Common.Version Version { get; set; }

        public ModuleVersion()
        {
            this.Layers = new List<ModuleLayer>();
        }

        public ModuleVersion(string id, string name, PSE.Framework.Common.Version version)
            : this()
        {
            this.Id = id;
            this.Name = name;
            this.Version = version;            
        }

        public ModuleVersion(string id, string name, PSE.Framework.Common.Version version, List<ModuleLayer> layers)            
        {
            this.Id = id;
            this.Name = name;
            this.Version = version;
            this.Layers = layers;
        }
    }
}
